/ Assembly List / LJCNetCommon / CodeTokenizer / IsRefType

Namespace - LJCNetCommon


Parameters
text - The text value.

Returns

True if a reference type, otherwise false.

Syntax

C#
public Boolean IsRefType(String text)

Check if the text is a RefType. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " public class ClassName()";
tokenizer.SetTokens(text);
short tokenIndex = 0;
string token = tokenizer.GetToken(tokenIndex);
bool isRefType = tokenizer.IsRefType(token);
// Value isRefType = true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.